package com.ydd.service;

import com.ydd.dto.IndexSetTopPage;
import com.ydd.dto.ListDTO;
import com.ydd.dto.RegDTO;
import com.ydd.result.Result;
import com.ydd.vo.IYddArticleDataVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface HomePageService {
    /**
     * 热门电影置顶
     * @return
     */
    public Result setTop(IndexSetTopPage setTopPage);

    /**
     * 文章列表数据
     * @return
     */
    public Result listArticle(ListDTO listDTO);


    /**
     * 注册
     * @param regDTO
     * @return
     */
    public Result regUser(RegDTO regDTO);

    /**
     * 最新文章
     * @return
     */
    public Result hotArticle();


    /**
     * 推荐文章
     * @return
     */
    public Result recommend();

    /**
     * 文章详情数据
     * @return
     */
    public Result showArticleDetail(String id);


    /**
     *  首页和全局数据
     * @return
     */
    public Result<IYddArticleDataVO> index();
}
